package com.fqgj.sentry.controller.pc.request;

import com.fqgj.sentry.common.exception.BizException;
import com.fqgj.sentry.common.exception.enums.ErrorCodeEnums;
import com.fqgj.sentry.common.request.ParamsObject;

/**
 * Created by ykpbean kangping.ying@yuntu-inc.com
 *
 * @description
 * @create 2017-07-31 下午5:04
 */


public class ExecutorComboVo extends ParamsObject {
    /**
     * 策略集id
     */
    private Long policySetsId;
    /**
     * 执行者类型
     */
    private Integer type;

    @Override
    public void validate() {
        if (policySetsId == null || type == null) {
            throw new BizException(ErrorCodeEnums.param_valid_error);
        }
    }

    public Long getPolicySetsId() {
        return policySetsId;
    }

    public ExecutorComboVo setPolicySetsId(Long policySetsId) {
        this.policySetsId = policySetsId;
        return this;
    }

    public Integer getType() {
        return type;
    }

    public ExecutorComboVo setType(Integer type) {
        this.type = type;
        return this;
    }
}
